package com.heyun.service;
import java.util.List;





import java.util.Map;


/**
 * @author CC
 * @Description 合同service层接口
 * @Company 
 * @date 2017年12月14日
 */
import com.heyun.bean.HeyunContract;

public interface ContractService {
	
	public int insertContract(HeyunContract contract);//创建合同，向表中插入合同数据
	public List<HeyunContract> listContract();//查询合同
	public int deleteContract(Integer contractId);//删除合同
	public HeyunContract getContract(Integer contractId);//根据id查询
	public int updateContract(HeyunContract contract);//更新合同
	public int updateStates(Map<String, Object> map);
	public int updateState(Map<String, Object> map);
	public int backContract(HeyunContract contract);//打回合同
	public int checkContract(HeyunContract contract);//审核合同
	public List<HeyunContract> listContractByUwant(HeyunContract contract);//条件查询合同
	public List<HeyunContract> listContractType();//查询合同类型和个数
}
